<?= isset($header) ? $header : '' ?>
<div id="content">
    <div class="form_style">
        <!-- box / title -->
        <div id="userinfo">
            <!-- base info start -->
            <table>
                <thead>
                    <tr>
                        <th>平常/假日聯絡</th>
                        <th>說明</th>
                        <th>排序</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody id="page_content">
                    <?
                    foreach($contact_usual_holiday as $key=>$val){
                    ?>
                    <tr id="t_<?= $val->contact_usual_holiday_id ?>">
                        <td><?= $val->value ?></td>
                        <td><?= $val->explanation ?></td>
                        <td><?= $val->sequence ?></td>
                        <td>
                            <a  onclick="edit_contact_usual_holiday(<?= $val->contact_usual_holiday_id ?>);" href="#"><i class="icon-edit"></i>修改</a>&nbsp;&nbsp;
                            <a href="<?= site_url('/contact_usual_holiday/data_delete/' . $val->contact_usual_holiday_id) ?>"><i class="icon-trash"></i>刪除</a>
                        </td>
                    </tr>
                    <?
                    }			
                    ?>
                </tbody>
                <tfoot>
                    <tr>
                        <td colspan="4">
                            <div style="float:right;vertical-align:baseline"> 
                                <div class="pager fl"> <span class="nav"> <a title="first page" class="first" href="#" onclick='pagination_home()'><span>First</span></a> <a title="previous page" class="previous" href="#" onclick='pagination_previous()'><span>Previous</span></a> </span>
                                    <input type="hidden" id="pagination_sequence" name="pagination_sequence" value="<?= $sequence ?>"><span class="pages"> 第
                                        <input id="pagination_pages" class="post" type="text" value="1" name="pagination_pages" style="width:20px;">
                                        /<?= $page['num_pages'] ?> </span> <input type="hidden" id="pagination_num_pages" name="pagination_num_pages" value="<?= $page['num_pages'] ?>">
                                    <input type="hidden" id="pagination_url" name="pagination_url" value="<?= $page['url'] ?>"><span class="nav"> <a title="next page" class="next" href="#" onclick='pagination_next()'><span>Next</span></a> <a title="last page" class="last" href="#" onclick='pagination_last()'><span>Last</span></a> </span> </div>
                            </div>
                        </td>
                    </tr>		
                    <tr>
                <form method="post" action="<?= site_url('/contact_usual_holiday/add') ?>" id="userinfo">
                    <td><input type="text" id="value" name="value"></td>
                    <td><input type="text" id="explanation" name="explanation"></td>
                    <td><input type="text" id="sequence" name="sequence" value="0" ></td>
                    <td><input type="submit" onclick="return checkform('平常/假日聯絡');" value="添加" class="input_background"></td>
                </form>
                </tr>
                </tfoot>
            </table>
            <!-- base info end -->
        </div>
    </div>
</div>
<?=
isset($footer) ? $footer : ''?>